package club.koorilkaze.factory;

import club.koorilkaze.dao.IUserDAO;
import club.koorilkaze.dao.proxy.UserDAOProxy;

import java.sql.SQLException;

/**
 * @program: DAOFactory
 * @description: 完成数据库的打开和关闭并且调用真实实现类对象的操作
 * @author: Hermit_Yoshino
 * @create: 2019-07-24 20:15
 **/
public class DAOFactory {

    /** 
     * @Description: 获取 DAO 接口实例
     * @param: []
     * @author: Hermit_Yoshino
     * @date: 2019/7/24 20:20
     * @throws: Exception
     * @return: club.koorilkaze.dao.IUserDAO 
     * @version: 0.0.1
     */ 
    public static IUserDAO getIUserDaoInstance () throws SQLException {
        return new UserDAOProxy();
    }
}
